package de.recipeminer.models;

import java.util.HashMap;

public class ChefkochRecipe {
    static final String NAME_KEY = "RezeptName";

    public ChefkochRecipe(String uuid, HashMap<String, String> data) {
        this.uuid = uuid;
        this.data = data;
    }

    String uuid;
    HashMap<String, String> data;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ChefkochRecipe that = (ChefkochRecipe) o;

        if (data != null ? !data.equals(that.data) : that.data != null) return false;
        if (uuid != null ? !uuid.equals(that.uuid) : that.uuid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = uuid != null ? uuid.hashCode() : 0;
        result = 31 * result + (data != null ? data.hashCode() : 0);
        return result;
    }
}
